package org.simpleframework.singleton;
// 静态内部类单例模式
public class StaticInnerClassSingleton {
    // 私有构造器必须要有
    private StaticInnerClassSingleton(){}
    private static class InnerClass{
        private static StaticInnerClassSingleton instance =
                new StaticInnerClassSingleton();
    }
    public static StaticInnerClassSingleton getInstance(){
        return InnerClass.instance;
    }
}
